/**
 * 
 */
package com.nightsoul.groovy

public class VendorWithCtor {

	public static void main(def args){
		def first = new VendorWithCtor('Canno', 'ULC');
		
		def second = ['Canoo', 'ULC'] as VendorWithCtor;
		
		VendorWithCtor third = ['Canoo', 'ULC'];
		println third;
	}
	
	
	String name, product;
	
	VendorWithCtor(name, product) {
		this.name = name;
		this.product = product;
	}
	
	String toString() {
		'name=${name}, product=${product}'
	}
}
